Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the embed function to support creating embeddings from text or image data in BigQuery. The implementation includes the core operation logic, integration with Ibis and SQLGlot compilers, and comprehensive unit tests. Feedback was provided to correct the type hint for connection_id, optimize the parameter validation logic using a generator expression, and fix a docstring copy-paste error in the vendored Ibis operations.
75fda1f to
d225c0c
Compare
|
Pre-release tests failed at |
|
|
||
| @log_adapter.method_logger(custom_base_name="bigquery_ai") | ||
| def embed( | ||
| content: str | series.Series | pd.Series, |
There was a problem hiding this comment.
Don't need to in this PR, but would nice to get all these working with the pd.col expression interface, and maybe (single-level) index values as well? Maybe we define "column-value" types and a common adapter, type annotation
There was a problem hiding this comment.
Sounds good to me. Opened b/507096491 to track this FR
Fixes b/497836685 🦕